<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Vains 授权</title>
</head>
<body>
<p>是否授权：<span th:text="${clientId}">clientId</span></p>
<div class="ui-notice-btn">
    <form id='confirmationForm' name='confirmationForm' th:action="@{'/' + ${applicationName} + '/oauth/authorize'}" method='post'>
        <input name='user_oauth_approval' value='true' type='hidden'/>
        <!--写好授权访问领域-->
        <label th:each="entry, value : ${scopes}">
            <span th:text="${entry.key}"></span>:
            <input th:name="${entry.key}" value="true" th:checked="${entry.value}" type="radio" /> 授权
            <input th:name="${entry.key}" value="false" th:checked="${!entry.value}" type="radio" /> 拒绝
            <br>
        </label>
        <input class="ui-btn-primary ui-btn-lg ui-btn-primary" name='authorize' value='授权' type='submit'/>
    </form>
</div>
</body>
</html>
